package com.javaGame.frame;

import javax.swing.*;

/**
 * 通关失败窗体
 */
public class LoseFrame extends JFrame {
    public LoseFrame(){
        this.setTitle("通关失败");

        //设置布局管理器
        this.setLayout(null);
        //加入图片标签
        ImageLabel imgLabel = new ImageLabel(
                "image/lose.jpg",0,0,1000,700,this);

        this.setSize(1000,700);
        this.setVisible(true);
        this.setDefaultCloseOperation(3);
        this.setLocationRelativeTo(null);
    }
}
